#ifndef LOGICCLOUDDATAFUNC_H
#define LOGICCLOUDDATAFUNC_H

#include <QObject>
#include "BaseFunc.h"
#include "DataType/PortStruct.h"
#include "DataType/Package.h"
class LogicCloudDataFunc : public BaseFunc
{
    Q_OBJECT
public:
    explicit LogicCloudDataFunc(QObject *parent = 0);

    enum {FunctionCode = DeviceFuntionCode::LogicCloudData};

    void setData(QByteArray data);
    QByteArray getData();

    void setPackage(Package package);
    Package package();

    void setDataFunctionCode(int functionCode);
    int dataFunctionCode();

private:
    int m_datafunctionCode;
    QByteArray m_data;
    Package m_package;
};



#endif // LOGICCLOUDDATAFUNC_H
